﻿using System;
using System.Data;
using System.Data.Common;

namespace DataBase
{
	public interface IDatabase
	{
		void Open();

		void Close();

		DbConnection Connection { get; set; }

		DbTransaction StartTransaction();

		bool ExecuteCommand(string sql);

		bool ExecuteCommand(string sql, DbTransaction tr);

		DataTable ExecQuery(string sql);
	}
}
